package com.bci.pwtz.service;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.CanNotDeleteException;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Dydx;

public interface DydxService {
	/**
	 * 查询低压导线
	 * @param dydxId
	 * @return
	 * @throws PwtzDatabaseException
	 */
	Dydx load(String dydxId) throws PwtzDatabaseException;
	/**
	 * 添加低压导线
	 * @param dydx
	 * @return
	 * @throws PwtzDatabaseException
	 */
	Dydx add(Dydx dydx) throws PwtzDatabaseException;
	/**
	 * 删除低压导线
	 * @param deviceid
	 * @return
	 * @throws PwtzDatabaseException
	 */
	int delete(String deviceid) throws PwtzDatabaseException,CanNotDeleteException;
	/**
	 * 修改低压导线
	 * @param dydx
	 * @return
	 * @throws PwtzDatabaseException
	 */
	int update(Dydx dydx) throws PwtzDatabaseException;
	/**
	 * 分页查询一段时间内修改的低压导线
	 * @param beginTime
	 * @param endTime
	 * @param pageSize
	 * @param pageNo
	 * @return
	 * @throws PwtzDatabaseException
	 */
	PaginationList<Dydx> selectDydxs(String devicename,Long companyId,int portalType,String[]medLineCodes,String lineCode,String beginTime,String endTime,int pageSize,int pageNo)throws PwtzDatabaseException;

}
